Page({
    data: {
        xPageReady : true,
        statusBar:''
    },
    onLoad :function(){
      wx.getSystemInfo({
        success: (e) => {
          let custom = wx.getMenuButtonBoundingClientRect();
          this.setData({
            statusBar : e.statusBarHeight
          })
        }
      })
    },
    xToback:function (){
        wx.navigateBack({
          delta:2
        })
    },
    xLoadState: function () {
        let that = this
        that.setData({
            xPageReady : false
        })
    },

    xToEmailList: function () {
        wx.navigateTo({
            url: '/subsale/pages/email/list/index',
        })
    },

    xToEmailStart: function () {
        wx.navigateTo({
            url: '/subsale/pages/email/detail/index',
        })
    }
})